#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_ctpQt.h"
#include "ThostFtdcMdApi.h"
#include "MdSpi.h"
#include "ThostFtdcTraderApi.h"
#include "TdSpi.h"

class ctpQt : public QMainWindow
{
	Q_OBJECT

public:
	ctpQt(QWidget *parent = Q_NULLPTR);


signals:
	void EmitInfo(QString);

private slots:
		void onBtnCon();
		void onBtnDisCon();
		void onBtnOrder();
		void OnRcvPrtInfo(QString);
		void MdLogin();
		void RcvHQT(QString);

		
private:
	Ui::ctpQtClass ui;
	MdSpi *md;
	TdSpi *td;
};
